/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package nominalitzacions.domain;

import java.io.File;

/**
 *
 * @author daniel.camacho.rodriguez
 */
public class UrlDomainController {

    private String bar = System.getProperty("file.separator");
    private String userPath = System.getProperty("user.home");

    private String root = new String(userPath+bar+"Nominalizator");
    private String languages = new String(root+bar+"Languages");
    private String security = new String(root+bar+"Security");

    public UrlDomainController(){

    }

    public boolean isFirst(){
        File dir = new File(root);
        if(dir.exists())
        {
            return true;
        }
        else
        {
            return false;
        }
    }

    public void createFolders(){
        File dir = new File(languages);
        dir.mkdirs();
        dir = new File(security);
        dir.mkdirs();
    }

    public String getRoot(){
        return root;
    }

    public String getLanguages(){
        return languages;
    }

    public String getSecurity(){
        return security;
    }
}
